<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');


    $router->get('add','TextController@index');
    //展示路由
    $router->get('show','TextController@dataShow');
    //添加路由
    $router->post('data-add','TextController@dataAdd');


});
